﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace IndoorPosition.Server.Database.Migrations.Migrations
{
    public partial class v005 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<double>(
                name: "Height",
                table: "Floor",
                type: "double",
                nullable: false,
                defaultValue: 0.0,
                comment: "楼层高程");

            migrationBuilder.AddColumn<double>(
                name: "Height",
                table: "Building",
                type: "double",
                nullable: false,
                defaultValue: 0.0,
                comment: "建筑物高程");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Height",
                table: "Floor");

            migrationBuilder.DropColumn(
                name: "Height",
                table: "Building");
        }
    }
}
